package cn.epsilon3.configBean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;

/**
 * oauth2 github 配置注入
 *
 * @author epsilon3
 * @date 2023-05-09
 */
@Component
@ConfigurationProperties(
        prefix = "epsilon3.config.oauth2.github"
)
public class InitializingGithubConfig {

    @NotBlank(message = "github clientId is blank")
    private String clientId;

    @NotBlank(message = "github secretId is blank")
    private String secretId;

    public InitializingGithubConfig() {

    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getSecretId() {
        return secretId;
    }

    public void setSecretId(String secretId) {
        this.secretId = secretId;
    }
}
